package com.bgs.controller;


import com.bgs.entity.User;
import com.bgs.service.CollectionsService;
import com.bgs.tool.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 收藏表 前端控制器
 * </p>
 *
 * @author Nero
 * @since 2022-05-05
 */
@RestController
@RequestMapping("/collections")
public class CollectionsController {

    @Autowired
    CollectionsService collectionsService;

    @GetMapping("/test")
    public R test(){
        User user=collectionsService.getuser();
        return R.ok().data("user",user);
    }

}

